github.com/gotd/td/telegram.Client.ctx (field)

36 uses

	github.com/gotd/td/telegram (current package)
		account_status.go#L256: 	runCtx := c.ctx
		auth_lost.go#L229: 	if c.ctx != nil && c.ctx.Err() != nil {
		auth_lost.go#L292: 	ctx := c.ctx
		cdn.go#L146: 	if c.ctx != nil {
		cdn.go#L149: 		return c.ctx
		client.go#L200: 	ctx    context.Context
		connect.go#L236: 	if c.ctx != nil {
		connect.go#L238: 		case <-c.ctx.Done():
		connect.go#L239: 			return errors.Wrap(c.ctx.Err(), "client already closed")
		connect.go#L246: 	c.ctx, c.cancel = context.WithCancel(ctx)
		connect.go#L323: 		case <-c.ctx.Done():
		connect.go#L324: 			return c.ctx.Err()
		handle_updates.go#L19: 			c.fetchConfig(c.ctx)
		handle_updates.go#L30: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L33: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L36: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L38: 		return c.updateHandler.Handle(c.ctx, upconv.ShortMessage(u))
		handle_updates.go#L40: 		return c.updateHandler.Handle(c.ctx, upconv.ShortChatMessage(u))
		handle_updates.go#L42: 		return c.updateHandler.Handle(c.ctx, upconv.ShortSentMessage(u))
		handle_updates.go#L44: 		return c.updateHandler.Handle(c.ctx, u)
		handle_updates.go#L46: 		c.log.Warn(c.ctx, "Ignoring update", log.String("update_type", fmt.Sprintf("%T", u)))
		invoke.go#L175: 		if c.ctx != nil {
		invoke.go#L176: 			clientDone = c.ctx.Done()
		invoke.go#L188: 			return errors.Wrap(c.ctx.Err(), "client closed")
		pool.go#L28: 	case <-c.ctx.Done():
		pool.go#L29: 		return nil, errors.Wrap(c.ctx.Err(), "client already closed")
		pool.go#L33: 	p := pool.NewDC(c.ctx, dc, creator, pool.DCOptions{
		session.go#L166: 	if c.ctx != nil {
		session.go#L167: 		return c.ctx
		session.go#L244: 	ctx := c.ctx
		session.go#L292: 	data, err := c.storage.Load(c.ctx)
		session.go#L329: 	if err := c.storage.Save(c.ctx, data); err != nil {
		session.go#L333: 	c.log.Debug(c.ctx, "Data saved",
		sub_conns.go#L132: 	if c.ctx == nil {
		sub_conns.go#L160: 	clientCtx := c.ctx